import request from '@/utils/request'

// 全部查询
export function List(data) {
  return request({
    url: 'Duty/List',
    method: 'POST',
    data
  })
}

// 2.1.2	人员信息
export function UserInfoGet(data) {
  return request({
    url: 'UserInfoV/list',
    method: 'POST',
    data: data
  })
}

export function CheckOrgList(data) {
  return request({
    url: 'OrgStr/CheckOrgList',
    method: 'GET',
    params: data,
    headers: { repeatSubmit: false }
  })
}

export function OAuthLogin(data) {
  return request({
    url: 'OAuth/login',
    method: 'GET',
    params: data,
    headers: { repeatSubmit: false }
  })
}

export function OAuthUpdateDept(data) {
  return request({
    url: 'OAuth/updateDept',
    method: 'GET',
    params: data,
    headers: { repeatSubmit: false }
  })
}

export function OAuthUpdateUser(data) {
  return request({
    url: 'OAuth/updateUser',
    method: 'GET',
    params: data,
    headers: { repeatSubmit: false }
  })
}
